from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait

from part import PersonalPostFace
from Driver.Driver import MDriver
class test4:
    PersonalPost=''
    stat=0
    def __init__(self):
        self.PersonalPost=PersonalPostFace.PersonalPost()
    # 检测界面
    def PersonalPostFace(self):
        self.PersonalPost.Come()
        self.stat=self.PersonalPost.PersonalPostFace()
        MDriver.photo()
    # 进入帖子
    def PersonalPostGotoPost(self):
        self.PersonalPost.PersonalPostOpenPost()
        WebDriverWait(MDriver.driver,3).until(expected_conditions.presence_of_element_located((By.CSS_SELECTOR,"#bit-forum-content > div.page-body > div > div > div:nth-child(2) > h3")))
        MDriver.photo()
